package edu.wong.pro.action;

import java.io.File;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

import edu.wong.pro.iservice.IPicture;

public class LoadPictureAction extends ActionSupport{
	private File[] image; //上传的文件
    private String[] imageFileName; //文件名称
    private String[] imageContentType; //文件类型
    private String PSTheme;
    private String PSAddition;
    private IPicture iPicture;
    
    
	public IPicture getiPicture() {
		return iPicture;
	}
	public void setiPicture(IPicture iPicture) {
		this.iPicture = iPicture;
	}
	public File[] getImage() {
		return image;
	}
	public void setImage(File[] image) {
		this.image = image;
	}
	public String[] getImageFileName() {
		return imageFileName;
	}
	public void setImageFileName(String[] imageFileName) {
		this.imageFileName = imageFileName;
	}
	public String[] getImageContentType() {
		return imageContentType;
	}
	public void setImageContentType(String[] imageContentType) {
		this.imageContentType = imageContentType;
	}
	public String getPSTheme() {
		return PSTheme;
	}
	public void setPSTheme(String pSTheme) {
		PSTheme = pSTheme;
	}
	public String getPSAddition() {
		return PSAddition;
	}
	public void setPSAddition(String pSAddition) {
		PSAddition = pSAddition;
	}

	@Override
	public String input() throws Exception {
		// TODO Auto-generated method stub
    	iPicture.savePictures(image, imageFileName, imageContentType, PSTheme, PSAddition);
    	return INPUT;
	}
	
}
